#ifndef FORMQUESTIONTABLE_H
#define FORMQUESTIONTABLE_H

#include <QtGui/QWidget>
#include "ui_FormEditorTab.h"

#include <QList>

#include "FormQuestion.h"

class FormEditorTab : public QWidget
{
    Q_OBJECT

private:

	QString filename;
	int num;
	bool isNewV;

	QList<FormQuestion*> questoes;

public:
	FormEditorTab(QString filename, QWidget *parent = 0);
    ~FormEditorTab();

	bool load(void);
	bool close(void);

	int getNum(void){return num;}
	void setNum(int n){num = n;}

	bool isNew(void){return isNewV;}

public slots:
	void save(void);
	bool saveAs(QString filename);

private slots:
	void addQuestion(void);
	void removeQuestions(void);

private:
    Ui::FormQuestionTableClass ui;
};

#endif // FORMQUESTIONTABLE_H
